<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:s="http://jboss.com/products/seam/taglib"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">
<body>                      
<ui:composition template="layout/template.xhtml">
                
<ui:param name="title" value="Administration"/>     
<ui:define name="body">
    
    <h:form id="admin">
    
        <rich:panel>
            <f:facet name="header">Administration</f:facet>
        </rich:panel>
        
        <rich:dataTable value="#{pooledTaskInstanceList}" var="task" width="100%">
            <rich:column width="50%">
       		 <f:facet name="header">Description</f:facet>
        	 <h:outputText value="#{task.description}"/>
    		</rich:column>

   			<rich:column>
        		<s:link action="#{registration.approve}" value="Approve" taskInstance="#{task}" propagation="none"/> 
        		<s:link action="#{registration.reject}" value="Reject" taskInstance="#{task}" propagation="none"/>
		    </rich:column>    
        </rich:dataTable>
    </h:form>
 </ui:define> 
</ui:composition>

</body>

</html>
